package com.lcgroup.springdemo.demos.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class  ResultResponse<T> {
    private String code;
    private String msg;
    private T data;

    public ResultResponse(T data) {
        this.code = "success";
        this.msg = "";
        this.data = data;
    }
}
